<extend name='Layout/ins_page' />
<block name="content">
	{:W('PageHeader/simple',array('name'=>'导入用户'))}
	<form method='post' id="form_data" enctype="multipart/form-data">
		<input type="hidden" name="opmode" value="import">
		<div class="layui-form-item">
			1.下载导入模版 <a class="btn btn-primary" href="/{:C('TEMPLETE_PATH')}/user.xls" target="_blank"><i class="fa fa-download"></i>下载</a>
		</div>
		<div class="layui-form-item">
			2.按照Excel格式，整理用户信息，不要调整列循序
		</div>
		<div class="layui-form-item">
			3.选择要导入的文件<br><br>
			<input style="" type="file" name="uploadfile" value="" >
		</div>
		<div class="layui-form-item">
			<br>
			<input class="btn" type="button" value="导入" id="btn_save">
			<input  class="btn btn-cancel" type="button" value="取消" onclick="go_return_url();">
		</div>
	</form>
	<div class="action layui-form-item line-height-32">

	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use('global', function() {
			var $ = layui.jquery;

			$("#btn_save").on('click', function() {
				send_form("form_data", "{:U('import')}", "__URL__");
			});
		});
	</script>
</block>
